From 188eb6099a7e14bf58776f0afc04a8b0ebed935b Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Tue, 1 Feb 2011 19:07:07 +0000 Subject: [PATCH] xl: fix broken cpupool-numa-split (part 2) Before the creation and population of a new CPU pool we have to clear the poolid variable, which still contains the value from the previous iteration. This fixes the execution of xl cpupool-numa-split on machines with more than two nodes. Signed-off-by: Andre Przywara Acked-by: juergen.gross@ts.fujitsu.com Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 1f4cae9d9c..ea511177af 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -5814,6 +5814,7 @@ int main_cpupoolnumasplit(int argc, char **argv) snprintf(name, 15, "Pool-node%d", node); libxl_uuid_generate(&uuid); + poolid = 0; ret = -libxl_create_cpupool(&ctx, name, schedid, cpumap, &uuid, &poolid); if (ret) { fprintf(stderr, "error on creating cpupool\n"); -- 2.30.2